{extend name="../../admin/view/main"}

{block name="content"}
<div class="think-box-shadow">
    <form onsubmit="return false" data-auto="true" action="{:request()->url()}" method="post"
          class='layui-form layui-card' autocomplete="off">
        <div class="layui-card-body padding-left-40">

            <div class="layui-form-item">
                <label class="relative block">
                    <span class="color-green font-w7">捐款页面名称</span>
                    <input name="page.title" required placeholder="请输入捐款页面名称" value="{:sysconf('page.title')}" class="layui-input">
                </label>
                <p class="help-block">捐款页面名称 作为捐款页面标题使用</p>
            </div>
            <div class="layui-form-item">
                <span class="color-green font-w7 label-required-prev">捐款页面主题图片</span>
                <div class="relative block">
                    <img alt="icon" data-tips-image style="height:auto;max-height:42px;min-width:42px" src="{:sysconf('page.topic')}"/>
                    <input type="hidden" name="page.topic" onchange="$(this).prev('img').attr('src', this.value)" value="{:sysconf('page.topic')}" class="layui-input">
                    <a class="margin-left-10" data-file="btn" data-type="jpg,png" data-field="page.topic">上传图片</a>
                    <p class="help-block">建议上传尺寸为 750px x auto</p>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="relative block">
                    <span class="color-green font-w7">累计捐款金额</span>
                    <input name="page.money" required placeholder="请输入累计捐款金额" value="{:sysconf('page.money')}" class="layui-input">
                </label>
                <p class="help-block">累计捐款金额 如果此处不设置 则自动计算已审核通过的金额</p>
            </div>
            <div class="layui-form-item">
                <label class="relative block">
                    <span class="color-green font-w7">温馨提示</span>
                    <textarea name="page.desc" required placeholder="请输入温馨提示" class="layui-textarea">{:sysconf('page.desc')}</textarea>
                </label>
                <p class="help-block">输入页面温馨提示</p>
            </div>
            <div class="layui-form-item">
                <label class="relative block">
                    <span class="color-green font-w7">捐款账号信息</span>
                    <textarea name="page.money_setting" required placeholder="请输入参数" class="layui-textarea">{:sysconf('page.money_setting')}</textarea>
                </label>
                <p class="help-block">输入捐款账号信息</p>
            </div>
            <div class="layui-form-item">
                <label class="relative block">
                    <span class="color-green font-w7">捐款单次上限阈值</span>
                    <input name="page.money_limit" required placeholder="请输入参数" value="{:sysconf('page.money_limit')}" class="layui-input">
                </label>
                <p class="help-block">捐款单次上限阈值，防止恶意输入金额，建议默认1000</p>
            </div>
            <div class="hr-line-dashed"></div>

            <div class="layui-form-item text-center">
                <button class="layui-btn" type="submit">保存配置</button>
            </div>
        </div>

    </form>
</div>

{/block}
{block name='style'}
<style>
    .input-group-addon {
        top: 24px;
        right: 1px;
        color: #eee;
        width: 25px;
        padding: 5.5px;
        position: absolute;
        margin-top: 1px;
        text-align: center;
        background-color: #FBFBFB;
        border-left: 1px solid #e6e6e6;
    }
</style>
{/block}
